package com.sll.hosptials.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 组织信息
 * @TableName org_info
 */
@TableName(value ="org_info")
@Data
public class OrgInfo implements Serializable {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("组织id")
    private Long orgId;

    @ApiModelProperty("组织名称")
    private String orgName;

    @ApiModelProperty("组织编码")
    private String orgCode;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("逻辑删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createDateTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDateTime;

    @ApiModelProperty("是否生效")
    private Integer enable;

    @ApiModelProperty(value = "父id")
    private Long orgParentId;

    @ApiModelProperty(value = "组织类型")
    private String orgType;

    @ApiModelProperty(value = "扩展字段")
    private String extend;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}